﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainFrm.Master" AutoEventWireup="true" CodeBehind="VehiclorList.aspx.cs" Inherits="Ewts.BaseData.VehiclorList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="EwtsConext" runat="server">
<h2 style="text-align:center; font-size:14px; height=45px;">收货员信息</h2>
<br />
    <asp:Repeater ID="reptVehiclor" runat="server" 
        onitemcommand="reptVehiclor_ItemCommand">
        <HeaderTemplate>
            <table id="tbVehiclor" width="100%" cellpadding="0" cellspacing="0" border="1">
                <thead>
                    <tr>
                        <th>城市</th>
                        <th>收货员姓名</th>
                        <th>工号</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody>
        </HeaderTemplate>
        <ItemTemplate>
                    <tr>
                        <td><%# Eval("city")%></td>
                        <td><%# Eval("name")%></td>
                        <td><%# Eval("emploeeno")%></td>
                        <td>
                            <a href="VehiclorShow.aspx?id=<%# Eval("id")%>">详细</a>
                            <a href="VehiclorModify.aspx?id=<%# Eval("id")%>">编辑</a>
                            <asp:LinkButton CssClass="lb_del" ID="LinkButton1" CommandName="Delete"  CommandArgument='<%#Eval("id")%>' runat="server">删除</asp:LinkButton>
                        </td>
                    </tr>
        </ItemTemplate>
        <FooterTemplate>
                </tbody>
            </table>
        </FooterTemplate>
    </asp:Repeater>

<script type="text/javascript">

        $(document).ready(function () {

            $('#tbVehiclor').dataTable({ "oLanguage":
                { "sUrl": "/jquery/jquery.dataTable.cn.txt" },

                "iDisplayLength": 10,
                "bSort": true,

                "aaSorting": [[0, "asc"]]
            });
           
        });
        $(".lb_del").click(function () {

            confirm("确定删除？");
        });  

</script>
</asp:Content>
